﻿
@{
    ViewBag.Title = "后台登录";
    Layout = "~/Views/Shared/_Layout_NoHeader.cshtml";
}
@model LoginViewModel
<div class="row col-xs-3 col-xs-offset-4">
    <h3>后台登录</h3>
    @using (Html.BeginForm("Login"))
    {
        @Html.ValidationSummary()
        <div class="form-group">
            @Html.LabelFor(m => m.UserName, new { @class = "control-label" })
            @Html.TextBoxFor(m => m.UserName, new { @class = "form-control" })
            @Html.ValidationMessageFor(m=>m.UserName)
        </div>
        <div class="form-group">
            @Html.LabelFor(m => m.Password, new { @class = "control-label" })
            @Html.PasswordFor(m => m.Password, new { @class = "form-control" })
            @Html.ValidationMessageFor(m=>m.Password)
        </div>
        <div class="form-group">
            <button class="btn btn-primary btn-block" type="submit">登 录</button>
        </div>
    }
</div>

